package com.example.Pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Login {
    private int id;
    private String username;
    private String password;
    private String selectType;
    private LocalDateTime createdTime = LocalDateTime.now();
    private LocalDateTime updateTime;
    private int updateNumber;
    public void Update(){
        this.updateTime = LocalDateTime.now();
        updateNumber++;
    }
}
